<template>
  <div class="about">
    <div>
      <van-nav-bar
        title="会员登录"
        right-text="注册"
        left-arrow
        @click-left="onClickLeft"
        @click-right="onClickRight"
      />
    </div>
    <!-- 登录输入框 -->
    <div class="about_bottom">
      <div class="group_about">
        <van-cell-group>
          <van-field v-model="text" placeholder="请输入用户名" />
        </van-cell-group>
        <br />
        <van-cell-group>
          <van-field v-model="password" type="password" placeholder="密码" />
        </van-cell-group>
      </div>
      <div>
        <button class="dl_button" @click="OnDL">登录</button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      text: '15619710929',
      password: '521314..dpx'
    }
  },
  methods: {
    onClickRight () {
      this.$router.push('/register')
    },
    onClickLeft () {
      this.$router.push('/')
    },
    OnDL () {
      this.$router.push('/')
    }
  }
}
</script>

<style scoped>
.about {
  background-color: #f3f5f7;
}
.van-nav-bar .van-icon {
  color: #ffffff;
  vertical-align: middle;
}
.van-nav-bar__title {
  max-width: 60%;
  margin: 0 auto;
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
}
.van-nav-bar {
  position: relative;
  z-index: 1;
  height: 46px;
  line-height: 46px;
  text-align: center;
  background-color: #4990e0;
  -webkit-user-select: none;
  user-select: none;
}
.van-nav-bar__text {
  display: inline-block;
  margin: 0 -16px;
  padding: 0 16px;
  color: #fffbfc;
  vertical-align: middle;
}
.group_about {
  margin-top: 25px;
}
.van-cell-group {
  background-color: #fff;
  width: 330px;
  margin: 0 auto;
}
.dl_button {
  width: 300px;
  height: 35px;
  background-color: #4990e0;
  color: #fff;
  border: 0px;
  border-radius: 5px;
  margin-top: 30px;
}
</style>
